# iOS environment
from appium import webdriver

desired_caps = dict(
    platformName='iOS',
    platformVersion='14.4',  # 你手机对应的系统版本号
    automationName='XCUITest',
    deviceName='拖拉机🚜',  # 手机对应的名字
    app="xxx/xxx.ipa"  # 你将要测试的ipa包
)

driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
el = driver.find_element_by_accessibility_id('item')
el.click()
